<?php
namespace application\views;

class Handler extends \application\auth\Normal {
	protected $registeredHandlers = array(
		'wym-image-upload',
		'file-remove',
		'file-upload'
	);
	public function load() {
		global $concerto;
		if(in_array(getQueryVar('handler'), $this->registeredHandlers))
			require_once(CN_APPLICATION_PATH.'application/handlers/'.getQueryVar('handler').'.php');
		else 
			$concerto->Loader->loadError(ERROR_CONTENT_NOT_FOUND);
	}
}
?>